import java.util.Random;

public class GenerateMask {
    int maskNum;

    public boolean[][] easy() {
        boolean[][] masks = new boolean[9][9];
        maskNum = 0;
        while (maskNum <=20) {
            int xPosition = new Random().nextInt(8);
            int yPosition = new Random().nextInt(8);
            if (!masks[xPosition][yPosition]) {
                masks[yPosition][xPosition] = true;
                maskNum++;
            }
        }
        maskNum = 0;
        return masks;
    }

    public boolean[][] intermediate() {
        boolean[][] masks = new boolean[9][9];
        maskNum = 0;
        while (maskNum <= 35) {
            int xPosition = new Random().nextInt(8);
            int yPosition = new Random().nextInt(8);
            if (!masks[xPosition][yPosition]) {
                masks[yPosition][xPosition] = true;
                maskNum++;
            }
        }
        maskNum = 0;
        return masks;
    }


    public boolean[][] difficult() {
        boolean[][] masks = new boolean[9][9];
        maskNum = 0;
        while (maskNum <= 50) {
            int xPosition = new Random().nextInt(8);
            int yPosition = new Random().nextInt(8);
            if (!masks[xPosition][yPosition]) {
                masks[yPosition][xPosition] = true;
                maskNum++;
            }
        }
        maskNum = 0;
        return masks;
    }

}
